package com.example.study.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 喜欢多云的季节
 * @since 2022-04-20
 */
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @Excel(name = "用户名")
    private String username;
    @Excel(name = "账号")
    @TableId
    private String account;
    @Excel(name = "秘密")
    private String password;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "头像")
    private String image;
    @Excel(name = "角色")
    private String role;
    @Excel(name = "收藏")
    private String collect;
    @Excel(name = "积分")
    private Integer reward;
    @Excel(name = "背景")
    private String background;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getCollect() {
        return collect;
    }

    public void setCollect(String collect) {
        this.collect = collect;
    }

    public Integer getReward() {
        return reward;
    }

    public void setReward(Integer reward) {
        this.reward = reward;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    @Override
    public String toString() {
        return "User{" +
        "username=" + username +
        ", account=" + account +
        ", password=" + password +
        ", email=" + email +
        ", image=" + image +
        ", role=" + role +
        ", collect=" + collect +
        ", reward=" + reward +
        ", background=" + background +
        "}";
    }
}
